home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / win_utl1 / mtw32301.zip / REGISTRY.RCM < prev    next >
Windows Registry Data  |  1996-05-06  |  2KB  |  107 lines

  1. REGEDITCMD1
  2.  
  3. ;
  4. ; REGEDITCMD1 must be the first line, to indentify this file as a Registery-commandfile
  5. ;
  6.  
  7. ;
  8. ; With [......] you set the context in the bindery
  9. ; All Commands listed below this "Section" will be executed in this
  10. ; Context.
  11. [HKEY_CLASSES_ROOT\TestMTWIN]
  12.  
  13. ;
  14. ; The entry @ designates the default-value of the given key
  15. ;
  16. @="fontext.dll"
  17. "ThreadingModel1"="Apartment"
  18.  
  19. ;
  20. ; The lines above just set the keys to the given values
  21. ;
  22. [HKEY_USERS\TestMTWIN\Deep\Blue\Is\Not\The\Best]
  23. +@="fontext.dll"
  24. +"ThreadingModel"="Apartment"
  25.  
  26. [HKEY_CLASSES_ROOT\TestMTWIN\Deep\Blue\Is\Not\The\Best]
  27. +@="fontext.dll"
  28. +"ThreadingModel"="Apartment"
  29.  
  30. [HKEY_CLASSES_ROOT\TestMTWIN\Deep\Blue2\Is\Not\The\Best]
  31. +@="fontext.dll"
  32.  
  33. ;
  34. ; Removes the default value
  35. ;
  36. -@
  37.  
  38. ;
  39. ; Same as above, but to be "compatible" with the CMD files
  40. ; Removes the Is sub-context
  41. ;
  42. [HKEY_CLASSES_ROOT\TestMTWIN\Deep\Blue]
  43. -[Is]
  44.  
  45. ;
  46. ; Removes the key "ThreadingModel"
  47. ;
  48. [HKEY_CLASSES_ROOT\TestMTWIN]
  49. -"ThreadingModel"
  50. ;
  51. ;
  52. ; Set some key-values to be replaced with something
  53. ;
  54. +"Wunder"="Welt"
  55. +"Wunder1"="Welt1"
  56. +"Wunder2"="Welt2"
  57. +"Wunder3"="Welt3"
  58. +"Wunder4"="Welt4"
  59. +"Wunder5"="Welt5"
  60. +"Wunder6"="Welt6"
  61. +"Wunder7"="Welt7"
  62.  
  63. ;
  64. ; Replace all lowercase elt with the uppercase version.
  65. ;
  66. [HKEY_CLASSES_ROOT\TestMTWIN]*
  67. r*"elt"="ELT"
  68.  
  69. ;
  70. ; Now we execute a windows command
  71. ;
  72. E write.exe
  73.  
  74.  
  75. ;
  76. ; Variables for registery
  77. ;
  78. ; Returns the value for a key
  79. ;
  80.  
  81. $(Key) := $(_REGVALUE[HKEY_CLASSES_ROOT\TestMTWin]@)
  82. $(Key) := $(_REGVALUE[HKEY_CLASSES_ROOT\TestMTWin]AuchEtwas)
  83.  
  84. ;
  85. ; Locates the context for a given key
  86. ;
  87. ; Returns [HKEY_CLASSES_ROOT\TestMTWin]
  88. ;
  89. $(Key2) := $(_REGCONTEXTVALUE[HKEY_USERS]State)
  90.  
  91. ;
  92. ; Locates the context for a given key/value
  93. ;
  94. ; Returns [HKEY_CLASSES_ROOT\TestMTWin]
  95. ;
  96. $(Key) := $(_REGCONTEXTVALUE[HKEY_USERS]"UserName"="CN=SCA")
  97.  
  98. ;
  99. ; Locates the context for a given subkey
  100. ;
  101. ; Returns [HKEY_CLASSES_ROOT\TestMTWin]
  102. ;
  103. $(Key) := $(_REGCONTEXTSUBKEY[HKEY_CLASSES_ROOT]TestMTWin)
  104. $(RKey) := $(_REGCONTEXTSUBKEY[HKEY_USERS]EuNET)
  105. $(RKey) := $(_REGCONTEXTSUBKEY[HKEY_USERS]EuNet)
  106.  
  107.